<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="header.jsp" %>

<h1>编辑博客</h1>
<form action="${pageContext.request.contextPath}/blog/update" method="post">
    <input type="hidden" name="id" value="${blog.id}">

    <div>
        <label>标题：</label>
        <input type="text" name="title" value="${blog.title}" required>
    </div>

    <div>
        <label>内容：</label>
        <textarea name="content" required>${blog.content}</textarea>
    </div>

    <button type="submit" class="btn">保存修改</button>
</form>

<%@ include file="footer.jsp" %>